

export function isWap() {
  let userAgentInfo = navigator.userAgent
  let Agents = [
    'Android',
    'iPhone',
    'SymbianOS',
    'Windows Phone',
    'iPad',
    'iPod'
  ]
  let flag = true
  for (let v = 0; v < Agents.length; v++) {
    if (userAgentInfo.indexOf(Agents[v]) > 0) {
      flag = false
      break
    }
  }

  if (flag) {
    let width = document.documentElement.clientWidth || document.body.clientWidth
    if (width < 840) {
      //小于840px的屏幕，判定为手机
      flag = false
    }
  }
  return !flag

}